package phone.example.com.a36kr.activity;

import android.content.Intent;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import phone.example.com.a36kr.R;
import phone.example.com.a36kr.tools.BaseActivity;

/**
 * Created by dllo on 16/9/3.
 */
public class InvestDetailsActivity extends BaseActivity{
    private String url = "https://z.36kr.com/project/";
    private WebView webView;

    @Override
    protected int setLayout() {
        return R.layout.activity_details_invest;
    }

    @Override
    protected void initView() {
        webView = bindView(R.id.details_web_view);

    }

    @Override
    protected void initData() {
        Intent intent = getIntent();
        String urlAdd = intent.getStringExtra("ID");
        webView.setWebViewClient(new WebViewClient());
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webView.loadUrl(url + urlAdd);


    }
}
